# -*- coding: utf-8 -*-
'''
from django.db import models

# Create your models here.
class LeafData(models.Model):
    district = models.CharField(max_length=20)
    target = models.CharField(max_length=30)
    address = models.CharField(max_length=70)
    tradeLandArea = models.FloatField(help_text='unit in m^2')
    cityLandUsage = models.CharField(max_length=6)
    nonCityLandUsage = models.CharField(max_length=6)
    nonCityLandUsageType = models.CharField(max_length=6)
    tradeDate = models.DateField()
    numContent = models.CharField(max_length=20)
    floor = models.CharField(max_length=30)
    toatlFloor = models.IntegerField()
    buildType = models.CharField(max_length=40)
    purpose = models.CharField(max_length=20)
    material = models.CharField(max_length=20)
    builtDate = models.DateField()
    tradeBuildArea = models.FloatField(help_text='unit in m^2')
    numRoom = models.SmallIntegerField(default=0)
    numParlor = models.SmallIntegerField(default=0)
    numBath = models.SmallIntegerField(default=0)
    hasManagement = models.BooleanField()
    totalPrice = models.FloatField(help_text='in 10 thousand')
    pricePerArea = models.FloatField()
    parkingType = models.CharField(max_length=10)
    parkingArea = models.FloatField(default=0.0)
    totalParkingPrice = models.FloatField(default=0.0, help_text='in 10 thousand')
    
class LeafInfo(models.Model):
    data = models.ForeignKey(LeafData)
    lat = models.FloatField()
    lng = models.FloatField()
    worldX = models.FloatField()
    worldY = models.FloatField()
'''
from google.appengine.ext import ndb


class Data(ndb.Model):
    district = ndb.StringProperty()
    target = ndb.StringProperty()
    totalPrice = ndb.IntegerProperty()
    pt = ndb.GeoPtProperty()
    lat = ndb.FloatProperty()
    lng = ndb.FloatProperty()